package com.tao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName dealtable
 */
@TableName(value ="dealtable")
public class Dealtable implements Serializable {
    /**
     * 主键ID，和submitTimeid一致
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 内容
     */
    private String classify;

    /**
     * 创建时间
     */
    private Date dealtime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID，和submitTimeid一致
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键ID，和submitTimeid一致
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 内容
     */
    public String getClassify() {
        return classify;
    }

    /**
     * 内容
     */
    public void setClassify(String classify) {
        this.classify = classify;
    }

    /**
     * 创建时间
     */
    public Date getDealtime() {
        return dealtime;
    }

    /**
     * 创建时间
     */
    public void setDealtime(Date dealtime) {
        this.dealtime = dealtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Dealtable other = (Dealtable) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getClassify() == null ? other.getClassify() == null : this.getClassify().equals(other.getClassify()))
            && (this.getDealtime() == null ? other.getDealtime() == null : this.getDealtime().equals(other.getDealtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getClassify() == null) ? 0 : getClassify().hashCode());
        result = prime * result + ((getDealtime() == null) ? 0 : getDealtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", classify=").append(classify);
        sb.append(", dealtime=").append(dealtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}